<template>
  <div>
    <el-row>
      <el-col :span="24">
        <el-form
          :inline="true"
          :model="search"
          label-width="120px"
        >
          <el-form-item :label="$t('toolingBarcode')">
            <el-input
              v-model="search.toolingBarcode"
              :placeholder="$t('searchtoolingbarcode')"
              clearable

            />
          </el-form-item>
          <el-form-item>
            <el-button
              type="primary"
              icon="el-icon-search"

              @click="doSearch"
            >{{ $t('search') }}</el-button
            >
          </el-form-item>
        </el-form>
      </el-col>
    </el-row>
  </div>
</template>
<script>
export default {
  name: 'WorkRecordHeader',
  data() {
    return {
      search: {}
    }
  },
  methods: {
    doSearch() {
      this.$emit('doSearch', this.search)
    }
  }
}
</script>

<style lang="scss" scoped>
@import "~@/assets/styles/defaultStyle.scss";
.el-form-item {
  margin-bottom: 0;
}
</style>
